import {
  Http
} from '../../http-d.js'
var http = new Http();
class IncomeModels{

  myTeam(param,success){
    var url = '/index/user/myTeam';
    http.request(url, param, function (res) {
      success(res);
    })
  }

  init(success){
    var url = '/index/user/incomeInit';
    http.request(url, {}, function (res) {
      success(res);
    })
  }
  incomeDetail(param,success){
    var url = '/index/user/incomeDetail';
    http.request(url, param, function (res) {
      success(res);
    })
  }
  getShareList(param,success){
    var url = '/index/share/shareEarn';
    http.request(url, param, function (res) {
      success(res);
    })
  }

  getSource(id,success){
    var url = '/index/share/getSource';
    http.request(url, { gid: id }, function (res) {
      success(res);
    })
  }
}
export {
  IncomeModels
}